public class EscapeMobLogic : BaseMobLogic
{
	public override void OnStart(LogicController contriller, string enterFromLogic, params object[] args)
	{
		base.OnStart(contriller, enterFromLogic);
		LogicEvent(8);
		LogicEvent(6);
	}

	public override void OnEvent(int name, params object[] args)
	{
		switch ((mobAssignerEvent)name)
		{
		case mobAssignerEvent.PathIsOver:
			LogicEvent(14);
			break;
		case mobAssignerEvent.ImOnMobWayPoint:
			LogicEvent(11);
			break;
		case mobAssignerEvent.CanNotFindPathToAnyPoint:
			LogicEvent(12);
			break;
		case mobAssignerEvent.ObstaclePlayer:
			LogicEvent(19);
			break;
		case mobAssignerEvent.ObstacleCar:
			LogicEvent(19);
			break;
		case mobAssignerEvent.ObstacleMob:
			LogicEvent(19);
			break;
		case mobAssignerEvent.TargetClear:
			ChangeLogic("Walk");
			break;
		}
		base.OnEvent(name, args);
	}

	public override void OnStop()
	{
		LogicEvent(3);
		base.OnStop();
	}
}
